package com.ksp.dom;

import com.ksp.dom.KSPDOM_ResDta;

public class KSPDOM_ResDta {

	private String cod;
	private String msg;
	private String jdt;
	public String getCod() {
		return cod;
	}
	public void setCod(String cod) {
		this.cod = cod;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getJdt() {
		return jdt;
	}
	public void setJdt(String jdt) {
		this.jdt = jdt;
	}
	
	public KSPDOM_ResDta() {
		// TODO Auto-generated constructor stub
	}
	
	public KSPDOM_ResDta(String cod, String msg, String jdt) {
		this.cod = cod;
		this.msg = msg;
		this.jdt = jdt;
		
	}
	public static KSPDOM_ResDta buildFail(String pMsg) {
		return new KSPDOM_ResDta("400", pMsg, "");
	}
	
	public static KSPDOM_ResDta buildSucc(String pData) {
		return new KSPDOM_ResDta("200", "执行成功", pData);
	}
	
}
